import request from '@/utils/request'

export const login = (username: string, password: string) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data: { username, password }
  })
}

export const logout = () => {
  return request({
    url: '/auth/logout',
    method: 'post'
  })
}

export const getProfile = () => {
  return request({
    url: '/auth/profile',
    method: 'get'
  })
} 